<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ include file="/commons/taglibs.jsp"%>

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>万信管理后台</title>
    <%@ include file="/commons/meta.jsp"%>
    <link href="${ctx}/resources/admin/css/base.css" rel="stylesheet">
    <link href="${ctx}/resources/admin/css/jquery-ui.css" rel="stylesheet">
    <link type="text/css" href="${ctx}/resources/artDialog/skins/black.css" rel="stylesheet" />
</head>
<body>



 <!--    <div class="orgRig clearfix"> -->
    
    <div>
        <div class="search-box" style="border-top: none">
          <form action="../userconfig/user_config!list.xhtml" method="post" class="" name="form1">
          <input type="hidden" id="deptid"  name="deptid" value="${deptid}"/>
          <input type="hidden" id="deptids"  name="deptids" value="${deptids}"/>
            <select class="fl"  name="utype"  onchange="javascript:document.form1.submit();">
                <option value="">全部用户</option>
                <option value="0" <s:if test="utype==0">selected</s:if>>普通用户</option>
                <option value="1" <s:if test="utype==1">selected</s:if>>虚拟用户</option>
                <option value="3" <s:if test="utype==3">selected</s:if>>已禁用用户</option>
            </select>
            <select class="fl" style="margin-left: 5px;"  name="pageSize" onchange="javascript:document.form1.submit();">
                <option  value="10"  <s:if test="pageSize==10">selected</s:if>>显示10行</option>
                <option value="20" <s:if test="pageSize==20">selected</s:if>>显示20行</option>
                <option value="50" <s:if test="pageSize==50">selected</s:if>>显示50行</option>
            </select>
          
                <input type="text" class="itext gray" id="findGroup" name="uname" value="输入姓名、账号等进行查询">
                <button class="btn blue-btn" type="submit">查询</button>
          </form>
        </div>
        <table class="membersList table-list" >
            <tr>
                <th><input type="checkbox" id="inputItem1"></th>
                <th><select><option>批量操作</option><option>禁用</option><option>启用</option></select></th>
                <th></th>
                <th></th>
                <th></th>
                <th><!--<button class="btn blue-btn">导出用户数据</button>-->  <button class="btn blue-btn" id="newUsers">新增用户</button> </th>
            </tr>
           <s:iterator value="pager.result" status="i" var="ss">
            <tr>
                <td><input type="checkbox" class="inputItem1" name="cbType"></td>
                <td><a href="javascript:;" class="basicInformation"><span style="display: none;" id="s<s:property value="userInfo.id" />"><s:property value="userInfo.id" /></span><span id="x<s:property value="userInfo.id" />"> <s:property value="usercode" /></span></a></td>
                <td><s:property value="userInfo.name" /></td>
                <td><span id="z<s:property value="userInfo.id" />"> <s:if test="userInfo.sex==0">女</s:if><s:elseif test="userInfo.sex==1">男</s:elseif></span></td>
                <td><a href="javascript:;" class="contacts">
                <span id="<s:property value="userInfo.id" />"><s:if test='lxrTxt==null || lxrTxt==""'>非常用联系人 </s:if><s:else><s:property value="lxrTxt" /></s:else></span></a></td>
                <td><a href="javascript:qy(<s:property value="userInfo.id" />,<s:property value="userInfo.forbidden" />);"  id="ss<s:property value="userInfo.id" />" class="disable"><s:if test="userInfo.forbidden==0">已启用</s:if><s:elseif test="userInfo.forbidden==1">已禁用</s:elseif></a></td>
            </tr>
            </s:iterator>
           
        </table>
          <s:if test="pager.totalCount > 0">
			<jsp:include page="/jsps/admin/inc/pager.jsp">
				<jsp:param name="pageUrl" value="${ctx}/log/system_log!list.xhtml" />
			</jsp:include>
		</s:if>
		<s:else>
			<div class="pages" align="center">没有找到任何记录!</div>
		</s:else>
        
        </div>
       <s:if test="pager.result.size<=7"> <div style="height: 270px"></div></s:if>
   <!--  </div> -->

  
<form action="../userconfig/user_config!save.xhtml" name="addUserForm" id="addUserForm">
<input type="hidden" id="deptid"  name="deptid" value="${deptid}"/>
<!--新增用户-->
<div class="popbox w560" id="addUsers" >
    <div class="popbox-hd">
        <h2>新增用户</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <ul class="tab_list">
            <li class="cur"><a href="javascript:;">基本资料</a></li>
           <!--  <li><a href="javascript:;">联系方式</a></li>
            <li><a href="javascript:;">详细资料</a></li> -->
        </ul>
        <div class="tab_info" style="display: block;">
            <p><label>用户类型：</label> <select name="user_type"><option value="0">普通用户</option><option value="1">虚拟用户</option></select>
            &nbsp;&nbsp;&nbsp;账号：<input type="text" class="itext" name="userCode" id="userCode"></p>
            <p><label>姓名：</label><input type="text" class="itext" name="uname" id="uname">
              &nbsp;&nbsp;&nbsp;性别：<input type="radio" name="sex" value="1" checked> 男 <input type="radio" name="sex" value="0"> 女</p>
            <p><label>手机：</label><input type="text" class="itext" name="phone"  id="phone">
             &nbsp;&nbsp;&nbsp;生日：<input type="text" class="itext"  name="birth" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"></p>
            <p><label>邮件：</label><input type="text" class="itext" name="email"  id="email">
            &nbsp;&nbsp;&nbsp;传真：<input type="text" class="itext" name="fax"  id="fax"></p>
            <p><label>职务：</label><input type="text" class="itext" name="local"  id="local">
             &nbsp;&nbsp;&nbsp;住宅电话：<input type="text" class="itext" name="hometel"  id="hometel"></p>
            <p><label>紧急电话：</label><input type="text" class="itext" name="emergencyphone"  id="emergencyphone">
            &nbsp;&nbsp;&nbsp;住址：<input type="text" class="itext" name="address"  id="address"></p>
            
        </div>
  <!---       <div class="clearfix tab_info">
            <p><label>办公电话：</label><input type="text" class="itext"></p>
            <p><label>手机：</label><input type="text" class="itext"></p>
            <p><label>传真：</label><input type="text" class="itext"></p>
            <p><label>电子邮箱：</label><input type="text" class="itext"></p>
            <p><label>联系地址：</label><textarea></textarea></p>
            <p><label>邮编：</label><input type="text" class="itext"></p>
        </div>
        <div class="tab_info">
            <p><label>国家：</label><input type="text" class="itext"></p>
            <p><label>省份：</label><input type="text" class="itext"></p>
            <p><label>城市：</label><input type="text" class="itext"></p>
            <p><label>血型：</label><select><option>A型</option><option>B型</option><option>O型</option><option>AB型</option></select></p>
            <p><label>生日：</label><select><option>1989</option></select> 年 <select><option>09</option></select> 月 <select><option>09</option></select> 日</p>
            <p><label>个人主页：</label><input type="text" class="itext"></p>
            <p><label>个人说明：</label><textarea></textarea></p>
        </div>
 --->
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn"   id="btnSave" >保存</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
</form>

<!--用户基本信息-->
<div class="popbox w560" id="basicInformation">
    <div class="popbox-hd">
        <h2>编辑用户</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <ul class="tab_list">
            <li class="cur"><a href="javascript:;">基本资料</a></li>
        <!--     <li><a href="javascript:;">联系方式</a></li>
            <li><a href="javascript:;">详细资料</a></li> -->
        </ul>
        <div class="tab_info" style="display: block;">
           <input type="hidden"  id="Qid"  />
           <p><label>用户类型：</label> <select id="Quserype" ><option value="0">普通用户</option><option value="1">虚拟用户</option></select>
            &nbsp;&nbsp;&nbsp;账号：<input type="text" class="itext"  id="QuserCode"></p>
            <p><label>姓名：</label><input type="text" class="itext" name="uname" id="Quname">
            &nbsp;&nbsp;&nbsp;性别：<input type="radio" name="Qsex" id="Qsex" value="1"> 男 <input type="radio" name="Qsex" value="0"> 女</p>
            <p><label>手机：</label><input type="text" class="itext" id="Qphone">
           &nbsp;&nbsp;&nbsp;生日：<input type="text" class="itext" id="Qbirth" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"></p>
            <p><label>邮件：</label><input type="text" class="itext" name="email"  id="Qemail">
            &nbsp;&nbsp;&nbsp;传真：<input type="text" class="itext" name="fax"  id="Qfax"></p>
            <p><label>职务：</label><input type="text" class="itext" name="local"  id="Qlocal">
            &nbsp;&nbsp;&nbsp;住宅电话：<input type="text" class="itext" name="hometel"  id="Qhometel"></p>
            <p><label>紧急电话：</label><input type="text" class="itext" name="emergencyphone"  id="Qemergencyphone">
           &nbsp;&nbsp;&nbsp;住址：<input type="text" class="itext" name="address"  id="Qaddress"></p>
        </div>
<!--         <div class="clearfix tab_info">
            <p><label>办公电话：</label><input type="text" class="itext" value="1234567"></p>
            <p><label>手机：</label><input type="text" class="itext" value="13330227284"></p>
            <p><label>传真：</label><input type="text" class="itext" value="2134"></p>
            <p><label>电子邮箱：</label><input type="text" class="itext" value="wanglaowu@qq.com"></p>
            <p><label>联系地址：</label><textarea>铁岭市莲花村</textarea></p>
            <p><label>邮编：</label><input type="text" class="itext" value="123455"></p>
        </div>
        <div class="tab_info">
            <p><label>国家：</label><input type="text" class="itext" value="哈萨克斯坦"></p>
            <p><label>省份：</label><input type="text" class="itext" value="辽宁"></p>
            <p><label>城市：</label><input type="text" class="itext" value="沈阳"></p>
            <p><label>血型：</label><select><option>A型</option><option>B型</option><option>O型</option><option>AB型</option></select></p>
            <p><label>生日：</label><select><option>1921</option></select> 年 <select><option>09</option></select> 月 <select><option>09</option></select> 日</p>
            <p><label>个人主页：</label><input type="text" class="itext" value="杨阳洋"></p>
            <p><label>个人说明：</label><textarea>别闹！</textarea></p>
        </div> -->

    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn"  id="updateBtn">保存</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<!--警告框-->
<div class="popbox w300" id="warning" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>


<div class="popbox w300" id="warning2" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn"  id="btnLxr">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<div class="popbox w300" id="warning3" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:qyok();" class="btn blue-btn"  id="btnqy">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<div class="popbox w300" id="msgBox" >
    <div class="popbox-hd">
        <h2>提示</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
       <a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>


<!--缺省常联系人-->
<!--<div class="popbox w300" id="contacts" >
    <div class="popbox-hd">
        <h2>缺省常联系人</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <div class="zTreeDemoBackground">
            <ul id="treeDemo1" class="ztree">
            </ul>
        </div>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>-->
<script src="${ctx}/resources/admin/js/lib/jquery-1.8.0.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/WdatePicker.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery-ui.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.core-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.excheck-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.exedit-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/common.js"></script>
<script src="${ctx}/resources/admin/js/userConfigurationData/organizationAndManagement.js"></script>
<script type="text/javascript" src="${ctx}/resources/artDialog/jquery.artDialog.js?skin=blue"></script>

</body>
</html>